package com.xms.datacore.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xms.core.exception.XmsException;

import java.sql.SQLException;
import java.util.List;

/**
 * <p>
 * IUpdaterService
 * </p>
 *
 * @author migo
 * @since 2021/9/2
 */
public interface IUpdaterService<T> {
    IService<T> getService();
    boolean update(T entity) throws XmsException, SQLException;
    boolean updateMany(List<T> entityList) throws XmsException, SQLException;
    void rollBack();
}
